<script language="JavaScript" type="text/javascript">
<!--
function up()
{
  document.upload-form.submit() ;
}

-->
</script>

<div id="body">
<div id="reg">
		
<?=$this->validation->error_string; ?>
		<div id="res_inputs">
		<?php 
			echo form_open('user_control/do_upload', array('name'=>'upload-form', 'id'=>'upload-form'), array('subject'=>$subject));
		?>
		<table id="reg_table" cellpadding="7px" cellspacing="0" border="0">

		<tr>
			<td align="left"><label for="type" style="color:#FFFFFF;">Type: </label></td>
			<td align ="left"><?= form_dropdown('drop',array('Link'=>'link', 'reference'=>'Reference'), $selected); ?></td>
			
		</tr>

		<tr>
			<td align="left"><label for="location" style="color:#FFFFFF;">Location: </label></td>
			<td colspan=1 align ="center"><?= form_input(array('id'=>'location', 'name'=>'location' , 'class'=>'text', 'size'=>20, 'maxlength'=>50)); ?></td>
		</tr>

		<tr>
			<td align="left"><label for="title" style="color:#FFFFFF;">Title: </label></td>
			<td align ="center"><?= form_input(array('id'=>'title', 'name'=>'title' , 'class'=>'text', 'size'=>20, 'maxlength'=>50)); ?></td>
		</tr>

		<tr>
			<td align="left"><label for="author" style="color:#FFFFFF;">Author: </label></td>
			<td align ="center"><?= form_input(array('id'=>'author', 'name'=>'author' , 'class'=>'text', 'size'=>20, 'maxlength'=>50)); ?></td>
		</tr>
		<tr>
			<td><?= form_reset('reset', 'Reset'); ?></td>
			<td colspan=1 align="left"><?php echo form_submit('mysubmit', 'Submit Resource!'); ?></td>
			
		</tr>
		</table>
		</div>
            </FORM>
 	   </div><div class="clear"> </div>
